<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>02.移动端的布局</title>
    <style>
        .p {
            width: auto;
            height: 800px;
            border: 10px solid;
            margin: 0 auto;
            display: flex;
            /* flex-direction: column;
            align-items: center; */
            flex-direction: row;
            flex-wrap: wrap;
            align-content: flex-start;
            justify-content: center;
        }

        .a,
        .b,
        .c,
        .d,
        .e {
            width: 120px;
            height: 120px;
            margin-top: 20px;
        }

        .even {
            margin-left: 10px;
        }

        .a {
            background-color: red;
            /* height: auto; */


        }

        .b {
            background-color: green;


        }

        .c {
            background-color: yellow;


        }

        .d {
            background-color: orange;
            line-height: 150px;


        }

        .e {
            background-color: blue;


        }
    </style>
</head>

<body>

    <div class="p">
        <div class="a">A</div>
        <div class="b even">B</div>
        <div class="c">C</div>
        <div class="d even">D</div>
        <div class="e">E</div>
        <div class="a even">A</div>
        <div class="b">B</div>
        <div class="c even">C</div>
        <div class="d">D</div>
        <div class="e even">E</div>
    </div>


</body>

</html>